#include <iostream>
#include<prim_head.h>
using namespace std;

int main()
{
    graph g;
    g.set_edge(1,2,6);
    g.set_edge(1,3,1);
    g.set_edge(1,4,5);
    g.set_edge(2,3,5);
    g.set_edge(2,5,3);
    g.set_edge(3,5,6);
    g.set_edge(3,6,4);
    g.set_edge(3,4,5);
    g.set_edge(4,6,2);
    g.set_edge(5,6,6);
    cout<<"befor prim:"<<endl<<endl;
    show(g.adjGraph);
    g.prim_process();
    cout<<endl<<endl<<"after prim:  "<<endl;
    show(g.primGraph);
}
